angular.module('myApp').service('PersonsServices', function($http,BaseUrl) {
    var service = {
        getPerson : function(pageNumber, pageSize) {
            return $http.post(BaseUrl+'/admin/admin/getPersons',
                {pageNumber: pageNumber, pageSize: pageSize});
        }
    };

    return service;
})